<?php
$user = $_SESSION["adminLoggedUserName"];
$operation = $_POST["operation"];

$summary = trim($_POST["summary"]);
$content = trim($_POST["tourContent"]);

$query = "UPDATE tour_content
		  SET modified = NOW(),
		  	  modified_by = '$user',
			  summary = '".$db->escapeString(utf8_decode($summary))."',
			  content = '".$db->escapeString(utf8_decode($content))."'
		  WHERE id = '".$_POST["id"]."'";
if (!$db->runQuery($query)) {
	echo "ko|Error de MySQL: ".$db->getErrorDescription();
	exit;
}

echo "ok|Modificación correcta.";
exit;
?>
